Skip to content

Conversation

goto-bus-stop
Copy link
Member

Features

  • parse_type parses a selection set with optional outer brackets - lrlna, pull/718 fixing issue/715
    This returns a SyntaxTree<Type> which instead of .document() -> cst::Document
    has .type() -> cst::Type.
    This is intended to parse the string value of a @field(type:) argument
    used in some Apollo Federation directives.
    let source = r#"[[NestedList!]]!"#;
    
    let parser = Parser::new(source);
    let cst: SyntaxTree<cst::Type> = parser.parse_type();
    let errors = cst.errors().collect::<Vec<_>>();
    assert_eq!(errors.len(), 0);

Fixes

  • Input object values can be empty - goto-bus-stop, pull/745 fixing issue/744
    apollo-parser version 0.7.3 introduced a regression where empty input objects failed to parse.
    This is now fixed.

    { field(argument: {}) }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants